package cn.wolfcode.service;

import cn.wolfcode.domain.Employee;
import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.EmployeeQueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.ServletOutputStream;
import java.io.IOException;
import java.util.List;


public interface IEmployeeService {

    void delete(Long id);

    Employee selectOne(Long id);
    List<Employee> selectList();
    PageInfo<Employee> query(EmployeeQueryObject qo);
    void insertAll(@Param("eId") Long eId, @Param("rId") Long rId);
    List selectEmpAndRole(Long id);

    void deleteAll(Long rId);

    Employee longinCheck(String username, String password);

    void update(Employee employee,Long rId);

    void insert(Employee employee,Long rId);

    List<Permission> userCheck(Long id);

    public Workbook exportXls(ServletOutputStream outputStream) throws IOException;

    void inputXml(MultipartFile file) throws IOException;

    List<Employee> selectName(String keyword);


}
